﻿package classes 
{
	import flash.display.Sprite;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	import flash.events.MouseEvent;
	
	import classes.loadExternalSWF;
	
	public class showAlternativaLogo extends Sprite
	{
		private var mcLogoAlternativa3D:loadExternalSWF = new loadExternalSWF("images/alternativa3d_medium.png");
		
		public var sp:Sprite;
		
		public function showAlternativaLogo(_x:Number = 0, _y:Number = 0):void
		{
			sp =  new Sprite();
			sp.addChild(mcLogoAlternativa3D);
			
			sp.buttonMode = true;
			sp.addEventListener(MouseEvent.CLICK, spOnClick);
			
			sp.x = _x;
			sp.y = _y;
			
			addChild(sp);
		}
		
		private function spOnClick(e:MouseEvent):void
		{
			navigateToURL( new URLRequest("http://alternativaplatform.com/en/"), "_blank");
		}
	}

}